package gt.actions;

import gt.domain.Lxrxx;
import gt.service.LxrxxService;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@WebServlet("/lookLxrxx")
public class lookLxrxx extends HttpServlet {

	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		String lxrxx_id=req.getParameter("lxrxx_id");
	    System.out.println("oo"+lxrxx_id);
	    LxrxxService lxrxxService =new LxrxxService();
	    Lxrxx lxrxx=lxrxxService.getLxrxxById(lxrxx_id);
	    req.setAttribute("lxrxx", lxrxx);
	    req.getRequestDispatcher("khInfo/LxrxxDetail.jsp").forward(req, resp);
	}

	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		this.doGet(req, resp);
	}
	

}
